<extend name="Base/common"/>
<!--<script type="text/javascript" src="/SG_Shopwechat/Public/Home/js/iscroll.js"></script>-->
<block name="TITLE"><title>采购申请</title></block>
<block name="body" >
    <header data-am-widget="header" class="am-header am-header-default am-header-fixed">
        <div class="am-header-left am-header-nav">
            <a href="{:U('Purchase/index')}" class="">
                <i class="am-header-icon am-icon-home" style="font-size: 40px;"></i>
            </a>
        </div>
        <h1 class="am-header-title">
            <a href="#title-link" class="">
                &nbsp;{$title}
            </a>
        </h1>
    </header>
    <body>

    <empty name="_list">
        暂时没有数据！
        <else/>
        <table class="am-table">
            <thead>
            <tr>
                <th>批次</th>
                <th>商品(规格)</th>
                <th>历史单价</th>
                <th>采购件数</th>
                <th>采购重量</th>
            </tr>
            </thead>
            <volist name="_list" id="vo">
                <tr>
                    <td>{$vo.batch}</td>
                    <td>{$vo.mark}</td>
                    <td>{$vo.createdAt|time_format}</td>
                    <td>{$vo.user}</td>
                    <td> <a href="{:U('listdetail')}&batch={$vo['batch']}" class="am-btn am-btn-default">明细</a><a class="am-btn am-btn-primary">编辑</a></td>
                </tr>
            </volist>
        </table>
    </empty>

    <div class="">
        <a href="{:U('newproduct')}&batch={$batch}" class="am-btn am-btn-danger">添加商品+</a>
    </div>
    </body>
</block>
<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script type="text/javascript">
    </script>
</block>
